var dbConn = require("../controller/dbConn");
var mongoose = dbConn.mongoose,
    Schema = mongoose.Schema,
    ObjectId = Schema.ObjectId;
var db = dbConn.db;

/**
 *
 * 描述：异常记录模型
 *
 * HISTORY
 * ****************************************************************************
 *  ID   DATE           			         PERSON          REASON
 *  1    2015年10月30日 下午13:43:38      Ghold          Create
 * ****************************************************************************
 */

var userSchema = new Schema({
    account: { type: String, index: { unique: true } },
    password: String,
    headimg: String,
    name: String,
    sex: Boolean, //  0.男 1.女
    birthday: Number,
    wechat: Number,
    qq: Number,
    createDt: Number,
});

var userModel = exports.UserModel = db.model('User', userSchema, 'user');
